package javaio;

import java.io.File;
import java.io.IOException;

public class FileDemo05 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		File f = new  File ("D:"+File.separator+"test.txt");
		if(f.exists()){
			f.delete();
		} else
			try {
				f.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
	}

}
